package com.tv;

import android.app.Activity;
import android.os.Bundle;

import androidx.annotation.Nullable;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

public class RecyclerTest extends Activity {
    private RecyclerView re;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.test_recycler_ativity);
        re = findViewById(R.id.re);

        re.setLayoutManager(new GridLayoutManager(this,6));
        re.setAdapter(new RecyclerAdapter());
    }
}
